package cn.funnyxb.powerremember.uis.task;

import cn.funnyxb.powerremember.beans.ATask;
import cn.funnyxb.powerremember.db.AllTableHolders;
import cn.funnyxb.powerremember.db.tables.Tbholder_alarmsinfo;
import cn.funnyxb.powerremember.db.tables.Tbholder_studyLog;
import cn.funnyxb.powerremember.db.tables.Tbholder_tasksinfo;
import cn.funnyxb.powerremember.uis.task.taskEdit.alarm.AlarmHelper;
import cn.funnyxb.tools.appFrame.App;
import cn.funnyxb.tools.appFrame.activityFrame.AbstractProccessor;
import cn.funnyxb.tools.appFrame.debugTool.Debuger;

public class Proccessor_Tasks extends AbstractProccessor
  implements IProccessor_Tasks
{
  private IUI_Tasks ui = null;

  public Proccessor_Tasks(IUI_Tasks paramIUI_Tasks)
  {
    this.ui = paramIUI_Tasks;
  }

  private void log(String paramString)
  {
    Debuger.log("proccessor_tasks", paramString);
  }

  public void asyncLoadTasksData()
  {
    new 1(this).execute(new Void[0]);
  }

  public void deleteTask(ATask paramATask)
  {
    int i = paramATask.getId();
    App.getApp().getAllTableHolders().getTbholder_tasksinfo().deleteTaskById(i);
    App.getApp().getAllTableHolders().getTbholder_studyLog().deleteByTaskId(i);
    new AlarmHelper(App.getApp()).unRegAlarmsByTaskid(i);
    App.getApp().getAllTableHolders().getTbholder_alarmsinfo().delByTaskId(i);
    this.ui.notifyTasksDataLoaded(App.getApp().getAllTableHolders().getTbholder_tasksinfo().queryAll());
  }

  public void destroy()
  {
    log("destroy");
    super.releaseResource();
  }
}

/* Location:           E:\Desktop\复件 classes_dex2jar.jar
 * Qualified Name:     cn.funnyxb.powerremember.uis.task.Proccessor_Tasks
 * JD-Core Version:    0.5.3
 */